package com.wyg.epcommonbase.common.util.file;

import lombok.extern.slf4j.Slf4j;

import java.io.FileOutputStream;
import java.io.PrintWriter;

/**
 * @Author: WangYongGan
 * @Date: 2021/11/8 21:37
 * @Description:
 */
@Slf4j
public class FileUtil {
    public static void saveFIle(String s, String path) throws Exception {
        FileOutputStream fileOutputStream = new FileOutputStream(path);
        PrintWriter printWriter=new PrintWriter(fileOutputStream);
        printWriter.println(s);
        printWriter.close();
        fileOutputStream.close();
    }




}
